package com.ruoyi.project.ypgl.service.impl;

import com.ruoyi.project.ypgl.domain.YpglGys;
import com.ruoyi.project.ypgl.mapper.YpglGysMapper;
import com.ruoyi.project.ypgl.service.IYpglGysService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class YpglGysServiceImpl implements IYpglGysService {

    @Autowired
    private YpglGysMapper ypglGysMapper;

    @Override
    public List<YpglGys> selectGysList(YpglGys gys) {
        return ypglGysMapper.selectGysList(gys);
    }

    @Override
    public int insertGys(YpglGys gys) {
        return ypglGysMapper.insertGys(gys);
    }

    @Override
    public YpglGys selectGysById(Long gysId) {
        return ypglGysMapper.selectGysById(gysId);
    }

    @Override
    public int updateGys(YpglGys gys) {
        return ypglGysMapper.updateGys(gys);
    }

    @Override
    public int deleteGysByIds(Long[] gysIds) {
        return ypglGysMapper.deleteGysByIds(gysIds);
    }
}
